package com.srit.recipes.dao;

import com.srit.recipes.common.parent.ParentDao;
import com.srit.recipes.entity.CodeInfo;
import com.srit.recipes.entity.ProcurementDetailInfo;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

@Repository
public interface ProcurementDetailDao extends ParentDao<ProcurementDetailInfo, Integer> {



    @Modifying
    @Transactional
    void deleteByRecipesId(int recipesId);

    List<ProcurementDetailInfo> findAllByRecipesId(int recipesId);

    List<ProcurementDetailInfo> findAllByWeek(int week);
    
}
